﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Acme.Sakila.TestSite.Objects
{
	public static class Utils
	{
		public static Acme.Sakila.EFDAL.ContextStartup ContextStartup
		{
			get
			{
				var t = System.Configuration.ConfigurationManager.AppSettings["SakilaEntities.Platform"];
				var platform = EFDAL.DatabasePlatformConstants.SQLServer;
				if (t.ToLower() == "mysql")
					platform = EFDAL.DatabasePlatformConstants.MySql;

				var retval = new Acme.Sakila.EFDAL.ContextStartup(string.Empty, platform);
				return retval;
			}
		}
	}
}